package cn.com.chengmandian.xh.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 救援订单表
 * </p>
 *
 * @author AutoGenerator
 */
@Getter
@Setter
@TableName("xh_rescue_order")
@ApiModel(value = "XhRescueOrder对象", description = "救援订单表")
public class XhRescueOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("救援单单号")
    private String orderNo;

    @ApiModelProperty("会员手中的电池编号")
    private String memberBatteryNo;

    @ApiModelProperty("救援人员手中的电池编号")
    private String rescueBatteryNo;

    @ApiModelProperty("优惠券会员关系ID")
    private Integer memberCouponId;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("网点Id")
    private Integer siteId;

    @ApiModelProperty("网点类型：1.门店 2.仓库")
    private Integer siteType;

    @ApiModelProperty("总金额")
    private BigDecimal totalPrice;

    @ApiModelProperty("总距离")
    private Double totalDistance;

    @ApiModelProperty("支付金额")
    private BigDecimal payPrice;

    @ApiModelProperty("订单状态：0.待支付（默认）1.待救援2.救援中3.已完成4.已取消")
    private Integer orderType;

    @ApiModelProperty("订单付款状态：0.待支付(默认)1.已付款2.支付完成(回调确认)3.已退款4.已关闭(订单超时)")
    private Integer orderStatus;

    @ApiModelProperty("救援员id")
    private Integer rescueId;

    @ApiModelProperty("救援员姓名")
    private String rescueName;

    @ApiModelProperty("救援员电话")
    private String rescuePhone;

    @ApiModelProperty("创建人ID(发起救援人Id)")
    private Integer creatorId;

    @ApiModelProperty("会员电话")
    private String creatorPhone;

    @ApiModelProperty("创建人(发起救援人姓名)")
    private String creator;

    @ApiModelProperty("发起救援地址")
    private String creatorAddress;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("救援成功时间")
    private Date successTime;

    @ApiModelProperty("更新时间")
    private Date modifyTime;

    @ApiModelProperty("经度")
    private BigDecimal lon;

    @ApiModelProperty("纬度")
    private BigDecimal lat;

}
